@import '@views/live/cc/assets/styles/mixin.scss';

/* 提问区样式 */
.question {
  position: absolute;
  top: 195px;
  bottom: 0;
  width: 260px;
  z-index: 1;
  background-color: #ffffff;

  .question-title {
    height: 44px;
    background-color: #f1f1f1;
    z-index: 1;
  }

  .question-title h2 {
    position: relative;
    color: #333;
    font-weight: 400;
    font-size: 16px;
    line-height: 44px;
    text-indent: 45px;
  }

  .question-title h2 i {
    position: absolute;
    top: 12px;
    left: 15px;
    width: 20px;
    height: 20px;
    background-image: url(~@views/live/cc/assets/images/live-icons.png);
    background-repeat: no-repeat;
    background-position: -1px -1px;
  }

  .checkbox {
    position: relative;
    top: 2px;
    *top: 0px;
    right: 5px;
    *right: 2px;
  }

  /* 提问列表 */
  .live-left .l-b-m-list {
    margin-bottom: 10px;
  }

  .live-left .l-b-m-list .question-answer-wrap {
    padding-top: 10px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    clear: both;
  }

  .live-left .l-b-m-list .question-answer-wrap:first-child {
    border-top: none;
  }

  .live-left .l-b-m-list .peo-infos {
    position: relative;
    width: 100%;
    height: 45px;
  }

  .live-left .l-b-m-list .peo-img {
    position: relative;
    float: left;
    width: 40px;
    height: 45px;
    overflow: hidden;
  }

  .live-left .l-b-m-list .peo-img img {
    position: absolute;
    top: 5px;
    left: -2px;
    width: 40px;
    min-height: 30px;
    background-image: url(~@views/live/cc/assets/images/fakehead_01.jpg);
    background-repeat: no-repeat;
  }

  .live-left .l-b-m-list .peo-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 45px;
    background-image: url(~@views/live/cc/assets/images/live-icons.png);
    background-repeat: no-repeat;
    background-position: 0 -185px;
  }

  .live-left .l-b-m-list .peo-mask-crown {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 45px;
    // background-image: url(~@views/live/cc/assets/images/crown.png);
  }

  .live-left .l-b-m-list .peo-names {
    position: relative;
    display: inline-block;
    *display: inline;
    max-width: 150px;
    line-height: 45px;
  }

  .live-left .l-b-m-list .p-n-names {
    display: inline-block;
    margin-left: 10px;
    *display: inline;
    *float: left;
    max-width: 150px;
    font-family: 'SimSun', Arial;
    font-size: 12px;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .live-left .l-b-m-list .peo-icons {
    position: absolute;
    top: 12px;
    right: -22px;
    width: 17px;
    height: 17px;
  }

  .live-left .l-b-m-list .peo-icons.girl {
    background-image: url(~@views/live/cc/assets/images/live-icons.png);
    background-repeat: no-repeat;
    background-position: 0 -100px;
  }

  .live-left .l-b-m-list .peo-icons.boy {
    background-image: url(~@views/live/cc/assets/images/live-icons.png);
    background-repeat: no-repeat;
    background-position: 0 -125px;
  }

  .live-left .peo-chat {
    position: relative;
    width: 100%;
    margin-top: -10px;
    padding: 10px 12px;
    border-radius: 3px;
  }

  .live-left .peo-chat .icons {
    position: absolute;
    left: -7px;
    top: 10px;
    width: 7px;
    height: 10px;
    background-image: url(~@views/live/cc/assets/images/live-icons.png);
    background-repeat: no-repeat;
    background-position: -25px -120px;
  }

  .live-left .peo-chat .chat-content {
    width: 200px;
    margin-bottom: 0;
    padding-left: 35px;
    color: #ffffff;
    line-height: 1.4;
    font-size: 14px;
    word-break: break-all;
  }

  .live-left .l-b-m-list .peo-repeat {
    border-top: 1px solid #5a809f;
    width: 200px;
    margin-left: 45px;
    padding-top: 0.5em;
  }

  .live-left .l-b-m-list .teacher-name {
    position: relative;
    margin-bottom: 0.1em;
    padding-left: 18px;
    font-family: '微软雅黑', Arial;
    font-size: 12px;
    font-size: 1.2rem;
    color: #b5e3ff;
  }

  .live-left .l-b-m-list .teacher-name i {
    position: absolute;
    top: 4px;
    left: 0;
    width: 12px;
    height: 12px;
    background-image: url(~@views/live/cc/assets/images/live-icons.png);
    background-repeat: no-repeat;
    background-position: 0 -260px;
  }

  .live-left .l-b-m-list .repeat-content {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.4;
    font-family: '微软雅黑', Arial;
  }

  .question-user {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 85px;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
  }

  .question-user .llb-t {
    position: relative;
    width: 230px;
    height: 20px;
    margin: 10px auto;
  }

  .question-user .llb-t .o-t {
    position: absolute;
    left: 0;
    color: #333;
    padding-left: 22px;
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
  }

  .question-user .llb-t .o-t i {
    position: absolute;
    top: 2px;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    background-image: url(~@views/live/cc/assets/images/live-icons.png);
    background-repeat: no-repeat;
    background-position: -20px -80px;
  }

  .question-user .llb-t .o-t i.active {
    background-image: url(~@views/live/cc/assets/images/live-icons.png);
    background-repeat: no-repeat;
    background-position: 0 -80px;
  }

  .question-user .llb-b {
    position: relative;
    width: 230px;
    height: 35px;
    margin: 0 auto;
  }

  .question-user .llb-b .chat-send-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 0 5px;
    height: 36px;
    width: 170px;
    background-color: #fff;
    border: none;
    border-radius: 3px;
    outline: none;
    box-sizing: border-box;
  }

  .btn-chat {
    position: absolute;
    right: 0;
    font-size: 12px;
    color: #fff;
    background-color: #57b8f4;
    width: 38px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
  }

  .btn-chat.btn-mini {
    padding: 0;
  }

  .btn-chat:hover {
    background-color: #0f97e5;
  }

  /* 问答部分 */
  .question-main {
    position: absolute;
    top: 44px;
    right: 0;
    bottom: 86px;
    left: 0;
    overflow: hidden;
    overflow-y: auto;
    border-top: 1px solid #ddd;
  }

  .question-main li {
    background-color: #f5f5f5;
  }

  .question-wrap {
    .question-name {
      margin-left: 10px;
      font-size: 12px;
      color: #0f97e5;
      @include ellipsis();
      display: inline-block;
      max-width: 200px;
    }
    .question-time {
      font-size: 12px;
      color: #0f97e5;
      float: right;
      @include ellipsis();
      max-width: 200px;
    }
    .question-content {
      font-size: 13px;
      color: rgb(51, 51, 51);
      margin-left: 45px;
      line-height: 36px;
      @include word-break();
    }
    .answer-list {
      padding-left: 20px;
      box-sizing: border-box;
      .answer {
        padding: 20px 0 20px 40px;
        box-sizing: border-box;
        border-bottom: 1px solid #eeeeee;
        .answer-wrap {
          .answer-name {
            color: #12ad1a;
            font-size: 24px;
            @include ellipsis();
            max-width: 200px;
            display: inline-block;
          }
          .answer-name:after {
            content: '';
            position: absolute;
            background: url(~@views/live/cc/assets/images/icon08.png) no-repeat;
            display: inline-block;
            width: 32px;
            height: 24px;
            background-size: 100%;
            left: 50px;
          }
          .answer-time {
            color: #b5b7be;
            font-size: 24px;
            float: right;
            @include ellipsis();
            max-width: 2rem;
          }
          .answer-content {
            margin-top: 20px;
            font-size: 26px;
            line-height: 36px;
            @include word-break();
          }
        }
      }
    }
  }
  .anwser-wrap {
    border-top: 1px solid #f1f1f1;
    width: 200px;
    margin-left: 45px;
    padding-top: 5px;
    padding-bottom: 5px;
    .anwser-arrows {
      @include width-height(12px, 12px);
      background-image: url(~@views/live/cc/assets/images/live-icons2.png);
      background-repeat: no-repeat;
      background-position: 0 -260px;
      float: left;
    }
    .anwser-box {
      padding-left: 20px;
      .anwser-name {
        font-size: 12px;
        font-weight: 400;
        color: rgb(51, 51, 51);
        @include ellipsis();
        color: #b5e3ff;
      }
      .anwser-content {
        font-size: 12px;
        font-weight: 400;
        color: rgb(51, 51, 51);
        margin-top: 9px;
        @include word-break();
        line-height: 20px;
      }
    }
  }
}
